<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use Notifiable, HasRoles;

    protected $guarded = [];
    protected $hidden = ['password'];

    public function frame()
    {
        return $this->hasOne('App\Models\Home\Frame','id','frame_id');
    }

    public function download_log()
    {
        return $this->hasMany('App\Models\Home\DownloadLog','uid','id');
    }
}
